export const consignmentProductColumns = [
  { minWidth: '120', prop: 'productCode', label: '平台编码' },
  { minWidth: '120', prop: 'productName', label: '产品名称' },
  { minWidth: '120', prop: 'productSpec', label: '规格型号' },
  { minWidth: '120', prop: 'factory', label: '生产厂商' },
  { minWidth: '120', prop: 'certificateNo', label: '注册证号（或备案号）' },
  { width: '100', prop: 'category', label: '类别' },
  { width: '100', prop: 'unit', label: '单位' },
  { width: '100', prop: 'minNum', label: '零售数量下限' },
  { width: '100', prop: 'action', label: '操作', fixed: 'right' }
]

export const consignmentSearchForm = [
  {
    key: 'idList',
    title: '产品名称',
    type: 'select',
    attr: {
      placeholder: '请选择',
      filterable: true,
      remote: true
    }
  },
  {
    key: 'platCode',
    title: '平台编码',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'certificateNo',
    title: '注册证号',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'createdAt',
    title: '添加时间',
    type: 'time',
    fieldname: ['startTime', 'endTime'],
    attr: {
      type: 'daterange',
      'start-placeholder': '开始时间',
      'end-placeholder': '结束时间',
      'default-time': ['00:00:00', '23:59:59'],
      'style': { width: '300px' }
    }
  }
]

export const productItemSearchForm = [
  {
    key: 'name',
    title: '医院名称',
    type: 'select',
    attr: {
      placeholder: '请选择',
      filterable: true,
      remote: true
    }
  }
]

export const productItemColumns = [
  { minWidth: '120', prop: 'hospitalName', label: '医院名称' },
  { width: '180', prop: 'time', label: '签约时间' },
  { minWidth: '120', prop: 'consignmentNum', label: '寄售数量' },
  { width: '100', prop: 'canConsign', label: '寄售开关' },
  { width: '120', prop: 'minNum', label: '寄售数量下限' }
]
